<% unless params[:page] %>

<div class="current-streak clear">
<% if current_user.prize.nil? %>
Please select a prize first.
<% else %>
<%= render :partial=>"winstreaks/remain",:locals=>{:user=>current_user} %>
<% end %>
<div class="change-prize"><%= link_to_function "Change Prize","showSelectPrizeForm()" %></div>
</div>

<% form_tag select_prizes_path,:id=>"select-prize-form",:method=>:put,:style=>"display:none"  do %>
<%= hidden_field_tag "id","",:id=>"selected-prize-id" %>
<%= render :partial=>"prizes/prizes" %>
<% end %>

<% end %>
<%= render :partial=>"last_winstreak" %>
<%= render :partial=>"friends_bet/challenge" %>
<%if current_user.bought_win?%>
<%= render :partial=>"next_streak"%>
<%end%>

<%= render :partial=>"bets",:locals=>{:bets=>@bets} %>

<%= render :partial=>"rules" %>
<%= render :partial=>"instructions" %>
